<div class="space-6"></div>

<!-- <?php echo $warehouseId ?> -->

<div class="row-fluid">
	<form action='<?php echo site_url("/product/create_post/$warehouseId")?>' class="form-horizontal" role="form" method="post" accept-charset="utf-8">

		<div class="control-group">
		      <label class="control-label" for="Name">Tên</label>
		      <div class="controls">
		         <input type="text" id="Name" name="Name">
		      </div>
		</div>

		<div class="control-group">
		      <label class="control-label" for="UnitId">Đơn vị tính</label>
		      <div class="controls">
				   <select>
				      <option value=""> Chọn đơn vị tính</option>
				      <?php foreach ($lstUnit as $u) {?>
				      	<option value='<?php echo $u->Id ?>'> <?php echo $u->Name ?></option>
				      <?php } ?>
				   </select>
		      </div>
		</div>		

		<div class="control-group">
		      <label class="control-label" for="ProviderId">Nhà cung cấp</label>
		      <div class="controls">
				   <select name="ProviderId" id="ProviderId">
				      <option value=""> Chọn nhà cung cấp</option>
				      <?php foreach ($lstProvider as $p) {?>
				      	<option value='<?php echo $p->Id ?>'> <?php echo $p->Name ?></option>
				      <?php } ?>
				   </select>
		      </div>
		</div>

		<div class="form-actions">
		   <button class="btn btn-success" type="submit"><i class="icon-ok bigger-110"></i>Lưu</button>
		   <a class="btn btn-warning" href='<?php echo site_url("/product/index/$warehouseId")?>'><i class="icon-undo bigger-110"></i>Trở Về</a>
		</div>			
	</form>	
</div>